import request from '@/utils/request'

// 获取权限列表
export const getPurviewList = (params) => request.get('/permissions', params)

// 获取权限数量
export const getPurviewCount = () => request.get('/permissions/count')

// 获取指定权限
export const getPurview = (id) => request.get(`/permissions/${id}`)

// 新建权限
export const addPurview = (data) => request.post(`/permissions`, data)

// 编辑权限
export const editPurview = (data) => request.put(`/permissions/${data.id}`, data)

// 删除权限
export const deletePurview = (id) => request.delete(`/permissions/${id}`)

